<template>
	<div class="main">
		<ul>
			<li v-for="post in res" :key="post.id">
				<h3>
					<router-link to="">
						{{ post.title }}
					</router-link>
				</h3>
				<p>
					作者:{{ post.author }}
					|
					发表于:{{ post.time }}
					<span class="float-right">
						<router-link to="">
							查看原文
							<i class="el-icon-d-arrow-right"></i>
						</router-link>
					</span>
				</p>

			</li>
		</ul>
		<img class="xia" src="../../assets/imagebox/xia.jpg">

	</div>
</template>

<script>
	// 模拟请求数据
	let resData = [{
			"id": "1",
			"title": "PHP科学：MYSQL手册免费分享",
			"author": "博学谷",
			"time": "05-31 14:35:08",
			"des": "文章描述",
			"pic": ""

		},
		{
			"id": "2",
			"title": "前端必学框架bootstr，3天带你从入门到精通，免费分享",
			"author": "博学谷",
			"time": "05-31 14:36:08",
			"des": "文章描述",
			"pic": ""

		},
		{
			"id": "3",
			"title": "想少走弯路，就看看这个贴：PHPer职业发展与规划只能需求",
			"author": "博学谷",
			"time": "05-31 14:38:08",
			"des": "文章描述",
			"pic": ""

		},
		{
			"id": "4",
			"title": "PHP进阶：要想提高PHP的编程效率，你必须知道的49个要点",
			"author": "博学谷",
			"time": "05-31 14:41:08",
			"des": "文章描述",
			"pic": ""

		},
		{
			"id": "5",
			"title": "最涨薪PHP项目-PHP微信开发平台 ",
			"author": "博学谷",
			"time": "05-31 14:45:03",
			"des": "文章描述",
			"pic": ""

		}

	]

	export default {
		data() {
			return {
				res: resData
			}
		}

	}
</script>

<style>
	.main {
		background: #FFF;
	}

	.float-right {
		float: right;
	}

	a {
		color: #000;
		text-decoration: none;
	}
	.xia {
		width: 300px;
		height: 220px;
	}
</style>
